package com.yst.system.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.yst.common.core.domain.AjaxResult;
import com.yst.common.core.domain.R;
import com.yst.system.domain.IndexQueryParams;
import com.yst.system.domain.SellOrder;

import javax.servlet.http.HttpServletResponse;

/**
 * 订单信息Service接口
 * 
 * @author hoj
 * @date 2024-05-10
 */
public interface ISellOrderService {
    /**
     * 查询订单信息
     * 
     * @param sellOrderId 订单信息主键
     * @return 订单信息
     */
    public SellOrder selectSellOrderBySellOrderId(Long sellOrderId);

    /**
     * 查询订单信息列表
     * 
     * @param sellOrder 订单信息
     * @return 订单信息集合
     */
    public List<SellOrder> selectSellOrderList(SellOrder sellOrder);

    /**
     * 新增订单信息
     * 
     * @param sellOrder 订单信息
     * @return 结果
     */
    public int insertSellOrder(SellOrder sellOrder);

    /**
     * 修改订单信息
     * 
     * @param sellOrder 订单信息
     * @return 结果
     */
    public int updateSellOrder(SellOrder sellOrder);

    /**
     * 批量删除订单信息
     * 
     * @param sellOrderIds 需要删除的订单信息主键集合
     * @return 结果
     */
    public int deleteSellOrderBySellOrderIds(Long[] sellOrderIds);

    /**
     * 删除订单信息信息
     * 
     * @param sellOrderId 订单信息主键
     * @return 结果
     */
    public int deleteSellOrderBySellOrderId(Long sellOrderId);

    void exportOrderInfo(SellOrder sellOrder, HttpServletResponse response);

    AjaxResult saleByDay(IndexQueryParams indexQueryParams);

    AjaxResult saleByItemType(IndexQueryParams indexQueryParams);

    AjaxResult saleBySalesman(IndexQueryParams indexQueryParams);
}
